﻿requirejs.config({
    baseUrl: ".",
    paths: {
    	zepto:"javascripts/zepto.min",
    	dingtalk:"javascripts/dingtalk",
        vue: "components/vue/vue.min",
        axios: "components/axios/axios.min",
        common: "resources/js/common"
    }
});

require(["zepto","dingtalk","vue", "axios", "common"], function (zepto,dingtalk,Vue, axios, common) {

    var vm = new Vue({
        el: "#view",
        data: {
            trace: [],
            result: []
        },
        mounted: function () {
            var self = this;
            var id = common.getParam("id");
            var processId = common.getParam("processId");

            axios.get("/common/trace?processId=" + processId)
                .then(function (response) {
                    self.trace = response.data;
                });

            axios.get("/incident/handleProcess?id=" + id)
                .then(function (response) {
                    self.result = response.data;
                });
        }
    });
});